// LoggrTest.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"

#include "Loggr.h"
#include "Tools/TimeCounter.h"

int _tmain(int argc, _TCHAR* argv[])
{
	Loggr::Loggr logger;
	Loggr::Tools::TimeCounter timeCounterGlobal;
	for (size_t i = 0; i < 1000; ++i)
	{
		Loggr::Tools::TimeCounter timeCounter;
		logger.Write("Some string #%5d", i);
		logger.Write("Printing lasted: %10.6f s", static_cast< float >(timeCounter.GetPeriod()) / 1000000.f);
	}
	logger.Write("Whole time: %10.6f s", static_cast< float >(timeCounterGlobal.GetPeriod()) / 1000000.f);
	return 0;
}

